Package org.bedework.calfacade.util
Interface AccessUtilI
- All Superinterfaces:
org.bedework.access.PrivilegeDefs,Serializable
An access helper interface. This interface makes some assumptions about the
classes it deals with but there is no explicit hibernate, or other
persistence engine, dependencies.
It assumes that it has access to the parent object when needed, continuing on up to the root. For systems which do not allow for a retrieval of the parent on calls to the getCalendar method, the getParent method for this class will need to be overridden. This would presumably take place within the core implementation.
- Author:
- Mike Douglass douglm bedework.edu
-
Field Summary
Fields inherited from interface org.bedework.access.PrivilegeDefs
allowed, allowedInherited, denied, deniedInherited, inheritedFlag, oldAllowed, oldDenied, privAll, privAny, privBind, privEncoding, privMaxType, privNone, privRead, privReadAcl, privReadCurrentUserPrivilegeSet, privReadFreeBusy, privSchedule, privScheduleDeliver, privScheduleDeliverInvite, privScheduleDeliverReply, privScheduleFreeBusy, privScheduleQueryFreebusy, privScheduleReply, privScheduleRequest, privScheduleSend, privScheduleSendFreebusy, privScheduleSendInvite, privScheduleSendReply, privUnbind, privUnlock, privWrite, privWriteAcl, privWriteContent, privWriteProperties, unspecified -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeAccess(ShareableEntity ent, Collection<org.bedework.access.Ace> aces, boolean replaceAll) Change the access to the given calendar entity using the supplied aces.Collection<? extends ShareableEntity>checkAccess(Collection<? extends ShareableEntity> ents, int desiredAccess, boolean alwaysReturn) Return a Collection of the objects after checking accessorg.bedework.access.CurrentAccesscheckAccess(ShareableEntity ent, int desiredAccess, boolean alwaysReturnResult) Check access for the given entity.voidclose()Called at request endvoiddefaultAccess(ShareableEntity ent, org.bedework.access.AceWho who) Remove any explicit access for the given who to the given calendar entity.Called to get the parent object for a shared entity.voidinit(PrincipalInfo cb) voidopen()Called at request start
-
Method Details
-
init
- Parameters:
cb- PrincipalInfo object
-
open
void open()Called at request start -
close
void close()Called at request end -
checkAccess
Collection<? extends ShareableEntity> checkAccess(Collection<? extends ShareableEntity> ents, int desiredAccess, boolean alwaysReturn) throws CalFacadeException Return a Collection of the objects after checking access- Parameters:
ents- Collection of BwShareableDbentitydesiredAccess- access we wantalwaysReturn- boolean flag behaviour on no access- Returns:
- Collection of checked objects
- Throws:
CalFacadeException- for no access or other failure
-