CmsPermissionSetCustom.getPermissionString
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.opencms.security.CmsPermissionSetCustom.getPermissionString (Showing top 6 results out of 315)

origin: org.opencms/opencms-core

/**
 * Calculates the permissions of the given user and his groups from the access control list.<p>
 * The permissions are returned as permission string in the format {{+|-}{r|w|v|c|i}}*.
 *
 * @param user the user
 * @param groups the groups of this user
 * @param roles the roles of this user
 *
 * @return a string that displays the permissions
 */
public String getPermissionString(CmsUser user, List<CmsGroup> groups, List<CmsRole> roles) {
  return getPermissions(user, groups, roles).getPermissionString();
}
origin: org.opencms/opencms-solr

/**
 * Calculates the permissions of the given user and his groups from the access control list.<p>
 * The permissions are returned as permission string in the format {{+|-}{r|w|v|c|i}}*.
 * 
 * @param user the user
 * @param groups the groups of this user
 * @param roles the roles of this user
 * 
 * @return a string that displays the permissions
 */
public String getPermissionString(CmsUser user, List groups, List roles) {
  return getPermissions(user, groups, roles).getPermissionString();
}
origin: org.opencms/opencms-solr

/**
 * Displays the access control list of a given resource.<p>
 * 
 * @param resourceName the name of the resource
 * 
 * @throws Exception if something goes wrong
 * 
 * @see CmsObject#getAccessControlList(String)
 */
public void getAcl(String resourceName) throws Exception {
  CmsAccessControlList acList = m_cms.getAccessControlList(resourceName);
  Iterator principals = acList.getPrincipals().iterator();
  while (principals.hasNext()) {
    I_CmsPrincipal p = m_cms.lookupPrincipal((CmsUUID)principals.next());
    System.out.println(p.getName() + ": " + acList.getPermissions(p.getId()).getPermissionString());
  }
}
origin: org.opencms/opencms-core

/**
 * Displays the access control list of a given resource.<p>
 *
 * @param resourceName the name of the resource
 *
 * @throws Exception if something goes wrong
 *
 * @see CmsObject#getAccessControlList(String)
 */
public void getAcl(String resourceName) throws Exception {
  CmsAccessControlList acList = m_cms.getAccessControlList(resourceName);
  Iterator<CmsUUID> principals = acList.getPrincipals().iterator();
  while (principals.hasNext()) {
    I_CmsPrincipal p = m_cms.lookupPrincipal(principals.next());
    m_shell.getOut().println(p.getName() + ": " + acList.getPermissions(p.getId()).getPermissionString());
  }
}
origin: org.opencms/opencms-solr

dbc.currentUser().getName(),
requiredPermissions.getPermissionString(),
permissions.getPermissionString()}));
origin: org.opencms/opencms-core

dbc.currentUser().getName(),
requiredPermissions.getPermissionString(),
permissions.getPermissionString()}));
org.opencms.securityCmsPermissionSetCustomgetPermissionString

Popular methods of CmsPermissionSetCustom

  • <init>
    Constructor to create a permission set with preset allowed and denied permissions from another permi
  • addPermissions
    Sets permissions from another permission set additionally both as allowed and denied permissions.
  • clone
    Returns a clone of this Objects instance.
  • denyPermissions
    Sets permissions additionally as denied permissions.
  • getAllowedPermissions
  • getDeniedPermissions
  • getPermissions
  • grantPermissions
    Sets permissions additionally as allowed permissions.
  • hashCode
  • setPermissions
    Set permissions from another permission set both as allowed and denied permissions. Permissions form
  • toString
  • toString

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JFrame (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)