com.flexive.shared.content
Class FxContentSecurityInfo

java.lang.Object
  extended by com.flexive.shared.content.FxContentSecurityInfo
All Implemented Interfaces:
java.io.Serializable

public class FxContentSecurityInfo
extends java.lang.Object
implements java.io.Serializable

Security related information about a content (primary key)

Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
Serialized Form

Constructor Summary
FxContentSecurityInfo(FxPK pk, long ownerId, long previewId, long typeId, long mandatorId, byte typePermissions, long typeACL, long stepACL, java.util.List<java.lang.Long> contentACLs, long previewACL, java.util.List<java.lang.Long> usedPropertyACLs, FxLock lock)
          Constructor
 
Method Summary
 java.util.List<java.lang.Long> getContentACLs()
          Get the ACL(s) of the content instance
 FxLock getLock()
          Get the lock of the content
 long getMandatorId()
          Get the id of the mandator
 long getOwnerId()
          Get the owner of the content
 FxPK getPk()
          Get the primary key of the content instance this info relates to
 long getPreviewACL()
           
 long getPreviewId()
          Get the binary id of the preview
 long getStepACL()
          Get the ACL of the step
 long getTypeACL()
          Get the ACL of the type
 long getTypeId()
          Getter for the used type id
 java.util.List<java.lang.Long> getUsedPropertyACLs()
          Get all used and relevant property ACL's.
 boolean useInstancePermissions()
          Use content instance permissions?
 boolean usePermissions()
          Use permissions at all?
 boolean usePropertyPermissions()
          Use property permissions?
 boolean useStepPermissions()
          Use step permissions?
 boolean useTypePermissions()
          Use type permissions?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FxContentSecurityInfo

public FxContentSecurityInfo(FxPK pk,
                             long ownerId,
                             long previewId,
                             long typeId,
                             long mandatorId,
                             byte typePermissions,
                             long typeACL,
                             long stepACL,
                             java.util.List<java.lang.Long> contentACLs,
                             long previewACL,
                             java.util.List<java.lang.Long> usedPropertyACLs,
                             FxLock lock)
Constructor

Parameters:
pk - the primary key this info relates to
ownerId - owner of the content
previewId - Id of preview image, only relevant for security if > 0
typeId - id of the used type
mandatorId - id of the mandator
typePermissions - byte encoded type permission handling
typeACL - ACL of the type
stepACL - ACL of the step
contentACLs - ACL(s) of the content instance
previewACL - Property ACL of the preview, only relevant for security if previewId > 0
usedPropertyACLs - relevant property ACLs
lock - lock of the content
Method Detail

getPk

public FxPK getPk()
Get the primary key of the content instance this info relates to

Returns:
primary key of the content instance this info relates to

getOwnerId

public long getOwnerId()
Get the owner of the content

Returns:
owner of the content

getTypeId

public long getTypeId()
Getter for the used type id

Returns:
used type id

getMandatorId

public long getMandatorId()
Get the id of the mandator

Returns:
mandator id

getLock

public FxLock getLock()
Get the lock of the content

Returns:
lock of the content
Since:
3.1

getTypeACL

public long getTypeACL()
Get the ACL of the type

Returns:
ACL of the type

getStepACL

public long getStepACL()
Get the ACL of the step

Returns:
ACL of the step

getContentACLs

public java.util.List<java.lang.Long> getContentACLs()
Get the ACL(s) of the content instance

Returns:
ACL(s) of the content instance

getUsedPropertyACLs

public java.util.List<java.lang.Long> getUsedPropertyACLs()
Get all used and relevant property ACL's. will be empty if property permissions are disabled for the type

Returns:
relevant property ACL's

usePermissions

public boolean usePermissions()
Use permissions at all?

Returns:
if permissions are used at all

getPreviewId

public long getPreviewId()
Get the binary id of the preview

Returns:
binary id of the preview

getPreviewACL

public long getPreviewACL()
Returns:

useInstancePermissions

public boolean useInstancePermissions()
Use content instance permissions?

Returns:
if content instance permissions are used

usePropertyPermissions

public boolean usePropertyPermissions()
Use property permissions?

Returns:
if property permissions are used

useStepPermissions

public boolean useStepPermissions()
Use step permissions?

Returns:
if step permissions are used

useTypePermissions

public boolean useTypePermissions()
Use type permissions?

Returns:
if type permissions are used