com.basecmp.core.services
Class SecurityMgr

java.lang.Object
  extended bycom.basecmp.core.services.SecurityMgr

public final class SecurityMgr
extends java.lang.Object


Method Summary
static boolean isACLEditor(java.lang.String user, PersistentAsset asset)
           
static boolean isACLReader(java.lang.String user, PersistentAsset asset)
           
static boolean isAssignee(java.lang.String user, PersistentAsset asset)
           
static boolean isEditor(ServletRequest request, PersistentAsset asset)
           
static boolean isPublicReader(ServletRequest request, PersistentAsset asset)
           
static boolean isReader(ServletRequest request, PersistentAsset asset)
           
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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