Package org.apache.chemistry.opencmis.commons.impl.dataobjects

Examples of org.apache.chemistry.opencmis.commons.impl.dataobjects.SecondaryTypeDefinitionImpl


            break;
        case CMIS_ITEM:
            result = new ItemTypeDefinitionImpl();
            break;
        case CMIS_SECONDARY:
            result = new SecondaryTypeDefinitionImpl();
            break;
        default:
            throw new CmisRuntimeException("Type '" + id + "' does not match a base type!");
        }
View Full Code Here


        // not supported - don't expose it
        // addTypeInteral(itemType);

        // secondary type
        SecondaryTypeDefinitionImpl secondaryType = new SecondaryTypeDefinitionImpl();
        secondaryType.setBaseTypeId(BaseTypeId.CMIS_ITEM);
        secondaryType.setIsControllableAcl(false);
        secondaryType.setIsControllablePolicy(false);
        secondaryType.setIsCreatable(true);
        secondaryType.setDescription("Secondary");
        secondaryType.setDisplayName("Secondary");
        secondaryType.setIsFileable(false);
        secondaryType.setIsIncludedInSupertypeQuery(true);
        secondaryType.setLocalName("Secondary");
        secondaryType.setLocalNamespace(NAMESPACE);
        secondaryType.setIsQueryable(false);
        secondaryType.setQueryName("cmis:secondary");
        secondaryType.setId(SECONDARY_TYPE_ID);
        secondaryType.setTypeMutability(typeMutability);

        addBasePropertyDefinitions(secondaryType);

        // not supported - don't expose it
        // addTypeInteral(secondaryType);
View Full Code Here

            break;
        case CMIS_ITEM:
            result = new ItemTypeDefinitionImpl();
            break;
        case CMIS_SECONDARY:
            result = new SecondaryTypeDefinitionImpl();
            break;
        default:
            throw new CmisRuntimeException("Type '" + id + "' does not match a base type!");
        }
View Full Code Here

            break;
        case CMIS_ITEM:
            result = new ItemTypeDefinitionImpl();
            break;
        case CMIS_SECONDARY:
            result = new SecondaryTypeDefinitionImpl();
            break;
        default:
            throw new CmisRuntimeException("Type '" + id + "' does not match a base type!");
        }
View Full Code Here

        } else if (typeDefinition instanceof CmisTypePolicyDefinitionType) {
            result = new PolicyTypeDefinitionImpl();
        } else if (typeDefinition instanceof CmisTypeItemDefinitionType) {
            result = new ItemTypeDefinitionImpl();
        } else if (typeDefinition instanceof CmisTypeSecondaryDefinitionType) {
            result = new SecondaryTypeDefinitionImpl();
        } else {
            throw new CmisRuntimeException("Type '" + typeDefinition.getId() + "' does not match a base type!");
        }

        result.setBaseTypeId(convert(BaseTypeId.class, typeDefinition.getBaseId()));
View Full Code Here

TOP

Related Classes of org.apache.chemistry.opencmis.commons.impl.dataobjects.SecondaryTypeDefinitionImpl

Copyright © 2018 www.massapicom. 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.