org.opencms.db.jpa.persistence
Class CmsDAOOnlineAccessControl

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

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

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

Since:
8.0.0

Nested Class Summary
static class CmsDAOOnlineAccessControl.CmsDAOOnlineAccessControlPK
          This class implements the primary key for a access entry in the table "cms_online_accesscontrol".
 
Constructor Summary
CmsDAOOnlineAccessControl()
          The default constructor.
CmsDAOOnlineAccessControl(java.lang.String principalId, java.lang.String resourceId)
          A public constructor for generating a new contents 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

CmsDAOOnlineAccessControl

public CmsDAOOnlineAccessControl()
The default constructor.


CmsDAOOnlineAccessControl

public CmsDAOOnlineAccessControl(java.lang.String principalId,
                                 java.lang.String resourceId)
A public constructor for generating a new contents 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()

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)

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()

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)

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()

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)

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()

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)

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()

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)