Examples of PermissionType


Examples of domain.PermissionType

   
    Role role2 = new Role();
    role2.setDescription("Admin");
   
    // load initial permission-types
    PermissionType permissionType1 = new PermissionType();
    permissionType1.setDescription("Public");
   
    PermissionType permissionType2 = new PermissionType();
    permissionType2.setDescription("Protected");
   
    PermissionType permissionType3 = new PermissionType();
    permissionType3.setDescription("Private");
   
    // load initial repetition-types
    RepetitionType repetitionType1 = new RepetitionType();
    repetitionType1.setDescription("None");
   
View Full Code Here

Examples of domain.PermissionType

public class EventAttributesAccessPolicy {

  public static void enforce(Session databaseSession, User currentUser, List<Event> events) {
    // get permission types from database (very very dumb):
    PermissionType privatePermission = (PermissionType) databaseSession.get(PermissionType.class, new Long(3));
    PermissionType protectedPermission = (PermissionType) databaseSession.get(PermissionType.class, new Long(2));

    // get admin role, yep, dumb as well.
    Role adminRole = (Role) databaseSession.get(Role.class, new Long(2));
   
    // Remove sensitive information
View Full Code Here

Examples of org.broadleafcommerce.openadmin.server.security.service.type.PermissionType

    protected void securityCheck(String[] ceilingNames, EntityOperationType operationType) throws ServiceException {
        if (ArrayUtils.isEmpty(ceilingNames)) {
            throw new SecurityServiceException("Security Check Failed: ceilingNames not specified");
        }
        AdminUser persistentAdminUser = getPersistentAdminUser();
        PermissionType permissionType;
        switch(operationType){
            case ADD:
                permissionType = PermissionType.CREATE;
                break;
            case FETCH:
View Full Code Here

Examples of org.hive2hive.core.model.PermissionType

        }

        print("Specify the user ID of the user you want to share with.");
        String friendID = awaitStringParameter();

        PermissionType permission = askForPermission(folderToShare.getAbsolutePath(), friendID);
        if (permission == null) {
          return;
        }

        IProcessComponent shareProcess;
View Full Code Here

Examples of org.jresearch.flexess.models.xml.PermissionType

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setRef(PermissionType newRef) {
    PermissionType oldRef = ref;
    ref = newRef;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, XmlPackage.PERMISSION_REF_TYPE__REF, oldRef, ref));
  }
View Full Code Here

Examples of org.jresearch.flexess.models.xml.PermissionType

  @Override
  public Role rawConvert() throws LoadModelException {
    Role result = super.rawConvert();
    EList<PermissionRefType> permission = getXmlElement().getPermission();
    for (PermissionRefType refType : permission) {
      PermissionType ref = refType.getRef();
      EMFUtil.addPermission(result, new PermissionConverter(ref, getConverted()).convert());
    }
    return result;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.