com.basecmp.core.services
Class SecurityMgr
java.lang.Object
com.basecmp.core.services.SecurityMgr
- public final class SecurityMgr
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isACLEditor
public static boolean isACLEditor(java.lang.String user,
PersistentAsset asset)
isACLReader
public static boolean isACLReader(java.lang.String user,
PersistentAsset asset)
isAssignee
public static boolean isAssignee(java.lang.String user,
PersistentAsset asset)
isEditor
public static boolean isEditor(ServletRequest request,
PersistentAsset asset)
isPublicReader
public static boolean isPublicReader(ServletRequest request,
PersistentAsset asset)
isReader
public static boolean isReader(ServletRequest request,
PersistentAsset asset)
isViewingDomainValid
public static boolean isViewingDomainValid(ServletRequest request,
PersistentAsset asset)
- Returns true if the scope of the asset is 1)
AssetTypes2.CONTENT_SCOPE_SYSTEM or 2)
AssetTypes2.CONTENT_SCOPE_CLIENT or 3)
AssetTypes2.CONTENT_SCOPE_SHARED and the asset is shared between
the domains of the current client or 4)
AssetTypes2.CONTENT_SCOPE_DOMAIN and the asset is a member of the
viewing domain.
- Parameters:
request - asset -
- Returns:
Copyright © 2004 by basecmp® - Professional Web Solutions