org.opencms.db.jpa.persistence
Class CmsDAOOfflineAccessControl

java.lang.Object
  extended by org.opencms.db.jpa.persistence.CmsDAOOfflineAccessControl
All Implemented Interfaces:
I_CmsDAOAccessControl

@Entity
public class CmsDAOOfflineAccessControl
extends java.lang.Object
implements I_CmsDAOAccessControl

This data access object represents a access control entry inside the table "cms_offline_accesscontrol".

Since:
8.0.0

Nested Class Summary
static class CmsDAOOfflineAccessControl.CmsDAOOfflineAccessControlPK
          This class implements the primary key for a access control entry in the table "cms_offline_accesscontrol".
 
Constructor Summary
CmsDAOOfflineAccessControl()
          The default constructor.
CmsDAOOfflineAccessControl(java.lang.String principalId, java.lang.String resourceId)
          A public constructor for generating a new access control object with an unique id.
 
Method Summary
 int getAccessAllowed()
          Returns the allowed permissions of the permission set.
 int getAccessDenied()
          Returns the denied permissions of the permission set.
 int getAccessFlags()
          Returns the flags of the access control entry.
 java.lang.String getPrincipalId()
          Returns the id of the principal assigned with this access control entry.
 java.lang.String getResourceId()
          Returns the id of the resource assigned with this access control entry.
 void setAccessAllowed(int accessAllowed)
          Sets the allowed permissions for the permission set.
 void setAccessDenied(int accessDenied)
          Sets the denied permission for the permission set.
 void setAccessFlags(int accessFlags)
          Sets the flags of the access control entry.
 void setPrincipalId(java.lang.String principalId)
          Sets the principal id assigned with this access control entry.
 void setResourceId(java.lang.String resourceId)
          Sets the resource id assigned with this access control entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsDAOOfflineAccessControl

public CmsDAOOfflineAccessControl()
The default constructor.


CmsDAOOfflineAccessControl

public CmsDAOOfflineAccessControl(java.lang.String principalId,
                                  java.lang.String resourceId)
A public constructor for generating a new access control object with an unique id.

Parameters:
principalId - the principal id
resourceId - the resource id
Method Detail

getAccessAllowed

public int getAccessAllowed()
Description copied from interface: I_CmsDAOAccessControl
Returns the allowed permissions of the permission set.

Specified by:
getAccessAllowed in interface I_CmsDAOAccessControl
Returns:
the allowed permissions as bitset
See Also:
I_CmsDAOAccessControl.getAccessAllowed()

getAccessDenied

public int getAccessDenied()
Description copied from interface: I_CmsDAOAccessControl
Returns the denied permissions of the permission set.

Specified by:
getAccessDenied in interface I_CmsDAOAccessControl
Returns:
the denied permissions as bitset.
See Also:
I_CmsDAOAccessControl.getAccessDenied()

getAccessFlags

public int getAccessFlags()
Description copied from interface: I_CmsDAOAccessControl
Returns the flags of the access control entry.

Specified by:
getAccessFlags in interface I_CmsDAOAccessControl
Returns:
the flags as bitset
See Also:
I_CmsDAOAccessControl.getAccessFlags()

getPrincipalId

public java.lang.String getPrincipalId()
Description copied from interface: I_CmsDAOAccessControl
Returns the id of the principal assigned with this access control entry.

Specified by:
getPrincipalId in interface I_CmsDAOAccessControl
Returns:
the principal id
See Also:
I_CmsDAOAccessControl.getPrincipalId()

getResourceId

public java.lang.String getResourceId()
Description copied from interface: I_CmsDAOAccessControl
Returns the id of the resource assigned with this access control entry.

Specified by:
getResourceId in interface I_CmsDAOAccessControl
Returns:
the resource id
See Also:
I_CmsDAOAccessControl.getResourceId()

setAccessAllowed

public void setAccessAllowed(int accessAllowed)
Description copied from interface: I_CmsDAOAccessControl
Sets the allowed permissions for the permission set.

Specified by:
setAccessAllowed in interface I_CmsDAOAccessControl
Parameters:
accessAllowed - the allowed permissions as bitset
See Also:
I_CmsDAOAccessControl.setAccessAllowed(int)

setAccessDenied

public void setAccessDenied(int accessDenied)
Description copied from interface: I_CmsDAOAccessControl
Sets the denied permission for the permission set.

Specified by:
setAccessDenied in interface I_CmsDAOAccessControl
Parameters:
accessDenied - the denied permissions as bitset
See Also:
I_CmsDAOAccessControl.setAccessDenied(int)

setAccessFlags

public void setAccessFlags(int accessFlags)
Description copied from interface: I_CmsDAOAccessControl
Sets the flags of the access control entry.

Specified by:
setAccessFlags in interface I_CmsDAOAccessControl
Parameters:
accessFlags - the flags as bitset
See Also:
I_CmsDAOAccessControl.setAccessFlags(int)

setPrincipalId

public void setPrincipalId(java.lang.String principalId)
Description copied from interface: I_CmsDAOAccessControl
Sets the principal id assigned with this access control entry.

Specified by:
setPrincipalId in interface I_CmsDAOAccessControl
Parameters:
principalId - the principal id
See Also:
I_CmsDAOAccessControl.setPrincipalId(java.lang.String)

setResourceId

public void setResourceId(java.lang.String resourceId)
Description copied from interface: I_CmsDAOAccessControl
Sets the resource id assigned with this access control entry.

Specified by:
setResourceId in interface I_CmsDAOAccessControl
Parameters:
resourceId - the resource id
See Also:
I_CmsDAOAccessControl.setResourceId(java.lang.String)