|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.business.PermissionFactory
com.dotmarketing.business.PermissionFactoryImpl
public class PermissionFactoryImpl
| Constructor Summary | |
|---|---|
PermissionFactoryImpl(PermissionCache permissionCache)
|
|
| Method Summary | ||
|---|---|---|
protected void |
deletePermission(Permission p)
Deletes the permission from db |
|
protected Permission |
getPermission(java.lang.String x)
This method returns the permission by id |
|
protected
|
getPermissions(java.util.List<P> permissionables)
|
|
protected java.util.List<Permission> |
getPermissions(Permissionable permissionable)
This method returns a list of all the permission the object have associated |
|
protected java.util.List<Permission> |
getPermissionsFromCache(Permissionable permissionable)
This method returns a list of all the permission the object have associated from the cache. |
|
protected int |
getUserCount(Permissionable permissionable,
int permissionType,
java.lang.String filter)
Counts how many ocurrences of users that have the specified permission over the inode object. |
|
protected java.util.List<com.liferay.portal.model.User> |
getUsers(Permissionable permissionable,
int permissionType,
java.lang.String filter,
int start,
int limit)
Gets a list of users that have the specified permission over the inode object |
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getUsersAndRolesWithPermissionOnInode(java.lang.String filter,
Permissionable permissionable,
int permissionType,
int start,
int limit)
Deprecated. |
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getUsersWithPermissionOnInode(java.lang.String filter,
Permissionable permissionable,
int permissionType,
int start,
int limit)
Deprecated. |
|
protected void |
savePermission(Permission p)
This method saves or update the permission object in db |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PermissionFactoryImpl(PermissionCache permissionCache)
permissionCache - | Method Detail |
|---|
protected Permission getPermission(java.lang.String x)
PermissionFactory
getPermission in class PermissionFactoryx - permision id
protected java.util.List<Permission> getPermissions(Permissionable permissionable)
PermissionFactory
getPermissions in class PermissionFactoryprotected void deletePermission(Permission p)
PermissionFactory
deletePermission in class PermissionFactoryp - permissionprotected void savePermission(Permission p)
PermissionFactory
savePermission in class PermissionFactoryp - permission
@Deprecated
protected java.util.Map<java.lang.String,java.lang.Object> getUsersAndRolesWithPermissionOnInode(java.lang.String filter,
Permissionable permissionable,
int permissionType,
int start,
int limit)
PermissionFactory
getUsersAndRolesWithPermissionOnInode in class PermissionFactoryfilter - compare stringpermissionType - type of permission (READ, WRITE OR PUBLISH)start - first element to showlimit - max number of element to show
@Deprecated
protected java.util.Map<java.lang.String,java.lang.Object> getUsersWithPermissionOnInode(java.lang.String filter,
Permissionable permissionable,
int permissionType,
int start,
int limit)
PermissionFactory
getUsersWithPermissionOnInode in class PermissionFactoryfilter - compare stringpermissionType - type of permission (READ, WRITE OR PUBLISH)start - first element to showlimit - max number of element to show
protected java.util.List<com.liferay.portal.model.User> getUsers(Permissionable permissionable,
int permissionType,
java.lang.String filter,
int start,
int limit)
PermissionFactory
getUsers in class PermissionFactorypermissionType - type of permission (READ, WRITE OR PUBLISH)filter - compare stringstart - first element to showlimit - max number of element to show
protected int getUserCount(Permissionable permissionable,
int permissionType,
java.lang.String filter)
PermissionFactory
getUserCount in class PermissionFactorypermissionType - type of permission (READ, WRITE OR PUBLISH)filter - compare string
protected java.util.List<Permission> getPermissionsFromCache(Permissionable permissionable)
PermissionFactory
getPermissionsFromCache in class PermissionFactorypermissionable - The object from where we going to take the permissions
protected <P extends Permissionable> java.util.Map<Permissionable,java.util.List<Permission>> getPermissions(java.util.List<P> permissionables)
throws DotDataException,
DotSecurityException
getPermissions in class PermissionFactoryDotDataException
DotSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||