/** * Returns the string representation of the "responsible" flag.<p> * * @return string of the format {{+|-}l}* */ public String getResponsibleString() { if (isResponsible()) { return "+l"; } else { return "-l"; } }
/** * Returns the string representation of the "responsible" flag.<p> * * @return string of the format {{+|-}l}* */ public String getResponsibleString() { if (isResponsible()) { return "+l"; } else { return "-l"; } }
/** * Returns the set of users that are responsible for a specific resource.<p> * * @param dbc the current database context * @param resource the resource to get the responsible users from * * @return the set of users that are responsible for a specific resource * * @throws CmsException if something goes wrong */ public Set<I_CmsPrincipal> readResponsiblePrincipals(CmsDbContext dbc, CmsResource resource) throws CmsException { Set<I_CmsPrincipal> result = new HashSet<I_CmsPrincipal>(); Iterator<CmsAccessControlEntry> aces = getAccessControlEntries(dbc, resource, true).iterator(); while (aces.hasNext()) { CmsAccessControlEntry ace = aces.next(); if (ace.isResponsible()) { I_CmsPrincipal p = lookupPrincipal(dbc, ace.getPrincipal()); if (p != null) { result.add(p); } } } return result; }
/** * Returns the set of users that are responsible for a specific resource.<p> * * @param dbc the current database context * @param resource the resource to get the responsible users from * * @return the set of users that are responsible for a specific resource * * @throws CmsException if something goes wrong */ public Set readResponsiblePrincipals(CmsDbContext dbc, CmsResource resource) throws CmsException { Set result = new HashSet(); Iterator aces = getAccessControlEntries(dbc, resource, true).iterator(); while (aces.hasNext()) { CmsAccessControlEntry ace = (CmsAccessControlEntry)aces.next(); if (ace.isResponsible()) { I_CmsPrincipal p = lookupPrincipal(dbc, ace.getPrincipal()); if (p != null) { result.add(p); } } } return result; }
while (entries.hasNext()) { CmsAccessControlEntry ace = (CmsAccessControlEntry)entries.next(); if (ace.isResponsible()) { I_CmsPrincipal principal = cms.lookupPrincipal(ace.getPrincipal()); if (principal != null) {
while (entries.hasNext()) { CmsAccessControlEntry ace = entries.next(); if (ace.isResponsible()) { I_CmsPrincipal principal = cms.lookupPrincipal(ace.getPrincipal()); if (principal != null) {
while (entries.hasNext()) { CmsAccessControlEntry ace = (CmsAccessControlEntry)entries.next(); if (ace.isResponsible()) { try { responsibles.put(
while (entries.hasNext()) { CmsAccessControlEntry ace = entries.next(); if (ace.isResponsible()) { try { responsibles.put(
List<CmsAccessControlEntry> entries = cms.getAccessControlEntries(resource.getRootPath(), false); for (CmsAccessControlEntry ace : entries) { if (ace.isResponsible()) { I_CmsPrincipal principal = cms.lookupPrincipal(ace.getPrincipal()); if (principal != null) {
/** * Creates a string representation of an access control entry.<p> * * @param ace the access control entry * * @return the string representation of the access control entry */ private String getAceString(CmsAccessControlEntry ace) { String result = ace.getPermissions().getPermissionString() + (ace.isResponsible() ? ace.getResponsibleString() : "") + ace.getInheritingString(); if ((ace.getFlags() & CmsAccessControlEntry.ACCESS_FLAGS_OVERWRITE) != 0) { result = result + " (" + Messages.get().getBundle(OpenCms.getWorkplaceManager().getWorkplaceLocale(m_cms)).key( Messages.GUI_PERMISSION_COLUMN_OVERWRITE_0) + ")"; } return result; }
List<CmsAccessControlEntry> aces = cms.getAccessControlEntries(cms.getSitePath(resource)); for (CmsAccessControlEntry ace : aces) { if (ace.isResponsible()) { showNotification = true; break resourceLoop;