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, int typeACL, int stepACL, int contentACL, int previewACL, long[] usedPropertyACL)
          Constructor
 
Method Summary
 int getContentACL()
          Get the ACL of the content instance
 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
 int getPreviewACL()
           
 long getPreviewId()
          Get the binary id of the preview
 int getStepACL()
          Get the ACL of the step
 int getTypeACL()
          Get the ACL of the type
 long getTypeId()
          Getter for the used type id
 long[] getUsedPropertyACL()
          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,
                             int typeACL,
                             int stepACL,
                             int contentACL,
                             int previewACL,
                             long[] usedPropertyACL)
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
contentACL - ACL of the content instance
previewACL - Property ACL of the preview, only relevant for security if previewId > 0
usedPropertyACL - relevant property ACL's
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

getTypeACL

public int getTypeACL()
Get the ACL of the type

Returns:
ACL of the type

getStepACL

public int getStepACL()
Get the ACL of the step

Returns:
ACL of the step

getContentACL

public int getContentACL()
Get the ACL of the content instance

Returns:
ACL of the content instance

getUsedPropertyACL

public long[] getUsedPropertyACL()
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 int 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